<template>
  <div>
    命名路由
    <div>
      <a-button type="primary" @click="skip">跳转</a-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "NamedRoute",
  methods: {
    skip() {
      this.$router.push({name: 'ResultPage', params: {username: 'erina'}})
    }
  }
}
</script>

<style scoped>

</style>